import request from '@/utils/request'

// 查询移动端通告列表
export function listAnnounce(query) {
  return request({
    url: '/system/announce/list',
    method: 'get',
    params: query
  })
}

// 查询移动端通告详细
export function getAnnounce(announceId) {
  return request({
    url: '/system/announce/' + announceId,
    method: 'get'
  })
}

// 新增移动端通告
export function addAnnounce(data) {
  return request({
    url: '/system/announce',
    method: 'post',
    data: data
  })
}

// 修改移动端通告
export function updateAnnounce(data) {
  return request({
    url: '/system/announce',
    method: 'put',
    data: data
  })
}

// 删除移动端通告
export function delAnnounce(announceId) {
  return request({
    url: '/system/announce/' + announceId,
    method: 'delete'
  })
}
